package de.hwr.chronix.client;

import com.bradrydzewski.gwt.calendar.client.Appointment;
import com.google.gwt.user.client.rpc.AsyncCallback;

import de.hwr.chronix.client.dto.AttendeeDTO;
import de.hwr.chronix.client.dto.PollDTO;


public interface ChronixServiceAsync {

	

	void getPollAdmin(String adminID, AsyncCallback<PollDTO> callback);

	void updatePoll(String adminID, PollDTO poll,
			AsyncCallback<Boolean> callback);

	void getPollUser(String pollID,
			AsyncCallback<PollDTO> asyncCallback);

	void vote(PollDTO poll, AttendeeDTO benutzer, AsyncCallback<Boolean> callback);

	void createPoll(PollDTO poll, AsyncCallback<PollDTO> callback);

	void getBestSlot(PollDTO poll, AsyncCallback<Appointment> callback);



}
